<template>
  <div class="login">
    <div class="login-box">
      <el-tabs v-model="activeName" >
        <el-tab-pane name="pass">
          <span slot="label">
            <i class="el-icon-lock"></i> 密码登录
          </span>
          <LoginPass  />
           <LoginYan v-show=show></LoginYan>
        </el-tab-pane>
        
      </el-tabs>
    </div>
  </div>
</template>

<script>
import LoginPass from "@/components/loginpass.vue";
import LoginCode from "@/components/logincode.vue";
import LoginYan from "@/components/loginyan.vue";
import { getcsrftoken } from "@/api";
export default {
  data() {
    return {
      activeName: "pass",
      show:false
    };
  },
  components: {
    LoginPass,
    LoginCode,
    LoginYan
  },
  

  mounted() {
    getcsrftoken().then((res) => {});
  },
};
</script>



<style lang="scss" scoped>
::v-deep .el-tabs__nav {
  width: 100%;
  display: flex;
}
::v-deep .el-tabs__item {
  flex: 1;
  text-align: center;
}
.login {
  width: 100%;
  height: 100%;
  background-image: url(https://bpic.588ku.com//back_origin_min_pic/19/04/12/a3ab6d5de121c44231e26c9ae2362802.jpg);
  background-size: 120% 100%;
  background-repeat: no-repeat;
  background-position: 0 0;
  overflow: hidden;
  position: relative;
  animation: move 20s linear infinite;
  -webkit-animation: move 20s linear infinite;
}

@keyframes move {
  0% {
    background-position: -100px 0;
  }
  50% {
    background-position: 0 0;
  }
  100% {
    background-position: -100px 0;
  }
}

.login-box {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
  width: 420px;
  height: 260px;
  border: 2px solid darkkhaki;
  background: rgba(221, 236, 13, 0.4);
  border-radius: 10px;
  animation: zoomInDown 0.8s;

}

</style>